﻿using System;

namespace DataAccessLayer
{
    /// <summary>
    /// Class that describes project
    /// </summary>
    public class Project : WorkItem
    {
        public DateTime StartDateTime { get; set; }
        public string Login { get; set; }

        /// <summary>
        /// Constructor of a project
        /// </summary>
        /// <param name="name">Project's name</param>
        /// <param name="description">Projects'description</param>
        /// <param name="attach">Arryy of attached objects</param>
        /// <param name="status">Project's status (New/InProgress/Done)</param>
        /// <param name="assign">Project manager</param>
        /// <param name="date">Project's start date</param>
        public Project(string name, string description, object[] attach, Statuses status, User assign, DateTime date)
        {
            Name = name;
            Description = description;
            Attachments = attach;
            Status = status;
            StartDateTime = date;
            AssignedTo = assign;
        }
    }
}
